# -*- coding: utf-8 -*-
from django.contrib import admin
from apps.models import Language,Group,User,ADMIN_PAGE_SIZE

class LanguageAdmin(admin.ModelAdmin):
    list_display = ('id','name','slug')
    list_display_links = ('name','slug')
    list_per_page = ADMIN_PAGE_SIZE

class GroupAdmin(admin.ModelAdmin):
    list_display = ('id','name','slug')
    list_display_links = ('name','slug')
    list_per_page = ADMIN_PAGE_SIZE

class UserAdmin(admin.ModelAdmin):
    list_display = ('id','email','realname','addtime_format')
    list_display_links = ('email','realname')
    list_per_page = ADMIN_PAGE_SIZE


admin.site.register(Group, GroupAdmin)
admin.site.register(Language,LanguageAdmin)
admin.site.register(User,UserAdmin)